home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / pofo / utility / attr / attr.doc < prev   
Text File  |  1991-08-21  |  4KB  |  88 lines

  1.  
  2.  
  3.           ATTR (Attribute)                       Charles Petzold
  4.           Command                       PC Magazine Vol 5, No 11
  5.             Copyright 1986 Ziff-Davis Publishing Company
  6.           ______________________________________________________
  7.  
  8.           Purpose:  ATTR.COM permits display and modification of
  9.                     the archive, system, hidden, and read-only
  10.                     file attributes.
  11.  
  12.           Format:   ATTR
  13.                       or
  14.                     ATTR *.*
  15.                       or
  16.                     ATTR [+A|-A] [+S|-S] [+H|-H] [+R|-R]
  17.                     [d:][path]filename[.ext]
  18.  
  19.           Remarks:  Entering ATTR without any parameters, as in
  20.                     the first format shown above, produces a help
  21.                     display (essentially identical to the third
  22.                     form above) that shows which file attributes
  23.                     can be changed.
  24.  
  25.                     ATTR.COM permits the use of the global ? and
  26.                     * characters (as in the second format above).
  27.                     Entering ATTR filename displays a specific
  28.                     file's attributes.  For example,
  29.  
  30.                          ATTR IBMBIO.COM
  31.  
  32.                     returns the display
  33.  
  34.                          IBMBIO.COM    Arc     Sys Hid R-O
  35.  
  36.                     showing that the Archive, System, Hidden, and
  37.                     Read-Only bits of the attribute byte are set
  38.                     for this file.
  39.  
  40.                     When wildcards are used to list the
  41.                     attributes of all the files in a directory,
  42.                     subdirectory names are shown as Dir (between
  43.                     the Arc and Sys in the example above).
  44.                     Unlike the DOS DIR command, ATTR lists hidden
  45.                     files, whether sought by specified filename
  46.                     or through a *.* listing.  However, ATTR does
  47.                     not show Volume names or the dot and double-
  48.                     dot entries in subdirectories.
  49.  
  50.                     The syntax for changing file attributes is
  51.                     indicated in the third format above.  After
  52.                     typing ATTR (and a space) you simply precede
  53.                     the file specification with a plus or minus
  54.                     sign, followed by the letter A (Archive), S
  55.                     (System), H (Hidden), or R (Read-Only).  A
  56.                     plus sign turns on the specified attribute; a
  57.                     minus sign turns it off.  More than one
  58.                     attribute can be changed at once, and the
  59.                     attribute-designating letters may be entered
  60.                     in any order and in upper- or lowercase.  No
  61.                     space may be used between the plus or minus
  62.                     and the letter that follows it, however.
  63.  
  64.           Example:  To convert the file 85TAX.WKS to hidden and
  65.                     read-only, you would enter
  66.  
  67.                     ATTR +H +R 85TAX.WKS
  68.  
  69.                     Since DOS itself normally sets the Archive
  70.                     bit, entering
  71.  
  72.                           ATTR 85TAX.WKS
  73.  
  74.                     would produce the display
  75.  
  76.                          85TAX.WKS     Arc         Hid R-O
  77.  
  78.                     Since the Hidden attribute has been set,
  79.                     however, the  DIR command will produce the
  80.                     message, "File not found."  And since the
  81.                     Read-Only flag has also been set, a DEL
  82.                     command will produce the message, "Access
  83.                     denied."
  84.  
  85.                     Notes:
  86.  
  87.                     1.   Requires DOS 2.0 or later.
  88.